package models

import "gorm.io/gorm"

type Product struct {
	gorm.Model
	Name         string `gorm:"column:name" json:"name"`
	ProductNum   int    `gorm:"column:product_num" json:"product_num"`
	ProductImage string `gorm:"column:product_image" json:"product_image"`
	ProductUrl   string `gorm:"column:product_url" json:"product_url"`
	StartTime    string `gorm:"column:start_time" json:"start_time"`
	EndTime      string `gorm:"column:end_time" json:"end_time"`
}

func (table *Product) TableName() string {
	return "product"
}
